/******************************************************************************
 * RLT DSP
 * by Roberto Bender <beto.bender@gmail.com>
 * under GPL 2.0 license
 * 2009
******************************************************************************/

#include "delay.h"

workingWord m_Buffer[30000] = {0};
workingWord delay(workingWord input, struct FilterParams* params)
{
    static int i = 0;

    m_Buffer[i] = input;
    i = (i + 1) % 30000;

    return m_Buffer[i];
}

